package cn.kgm.template.server.entity;

import cn.kgm.template.dto.base.TemplateEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * # 技术改变自己 #
 * 模板数据,选择项表
 *
 * @author kapp-i
 * @date 2024-03-18 14:47:45
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "template_options")
@ApiModel(value = "TemplateOptions", description = "模板数据,选择项表")
public class TemplateOptions extends TemplateEntity<Long> {

    /**
     * 父选择框id,selects表id
     */
    @ApiModelProperty(value = "父选择框id,selects表id")
    @TableField(value = "select_id")
    private Long selectId;

    /**
     * 选择项值
     */
    @ApiModelProperty(value = "选择项值")
    @TableField(value = "value", condition = LIKE)
    private String value;
}
